package org.example.proxy2;

public class UserServiceProxy implements UserService{
    UserServiceImpl usi;
    public UserServiceProxy(UserServiceImpl usi) {
        this.usi = usi;
    }
    @Override
    public void add() {
        System.out.println("日志记录开始");
        usi.add();
        System.out.println("日志记录结束");
    }

    @Override
    public void update() {

    }

    @Override
    public void delete() {

    }

    @Override
    public void getById() {

    }

    @Override
    public void getAll() {

    }
}
